home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Art / F / Food Stack 1 Sampler.sit / Food Stack 1 Sampler / background_4050.xml < prev    next >
Encoding:
Extensible Markup Language  |  1994-03-07  |  9.7 KB  |  269 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>4050</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_4189.pbm</bitmap>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3220.css" />
  11.     <part>
  12.         <id>1</id>
  13.         <type>button</type>
  14.         <visible> <true /> </visible>
  15.         <reserved5> 0 </reserved5>
  16.         <reserved4> 0 </reserved4>
  17.         <reserved3> 0 </reserved3>
  18.         <reserved2> 0 </reserved2>
  19.         <reserved1> 0 </reserved1>
  20.         <enabled> <true /> </enabled>
  21.         <rect>
  22.             <left>28</left>
  23.             <top>302</top>
  24.             <right>51</right>
  25.             <bottom>324</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <showName> <false /> </showName>
  29.         <highlight> <false /> </highlight>
  30.         <autoHighlight> <false /> </autoHighlight>
  31.         <sharedHighlight> <true /> </sharedHighlight>
  32.         <family>0</family>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>1014</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Chicago</font>
  37.         <textSize>12</textSize>
  38.         <textStyle>plain</textStyle>
  39.         <name>Prev</name>
  40.         <script>on mouseUp
  41. visual effect dissolve slow
  42. go to previous card
  43. end mouseUp
  44.  
  45. </script>
  46.     </part>
  47.     <part>
  48.         <id>2</id>
  49.         <type>button</type>
  50.         <visible> <true /> </visible>
  51.         <reserved5> 0 </reserved5>
  52.         <reserved4> 0 </reserved4>
  53.         <reserved3> 0 </reserved3>
  54.         <reserved2> 0 </reserved2>
  55.         <reserved1> 0 </reserved1>
  56.         <enabled> <true /> </enabled>
  57.         <rect>
  58.             <left>56</left>
  59.             <top>302</top>
  60.             <right>81</right>
  61.             <bottom>324</bottom>
  62.         </rect>
  63.         <style>transparent</style>
  64.         <showName> <false /> </showName>
  65.         <highlight> <false /> </highlight>
  66.         <autoHighlight> <false /> </autoHighlight>
  67.         <sharedHighlight> <true /> </sharedHighlight>
  68.         <family>0</family>
  69.         <titleWidth>0</titleWidth>
  70.         <icon>1013</icon>
  71.         <textAlign>center</textAlign>
  72.         <font>Chicago</font>
  73.         <textSize>12</textSize>
  74.         <textStyle>plain</textStyle>
  75.         <name>Next</name>
  76.         <script>on mouseUp
  77. visual effect dissolve slow
  78. go to next card
  79. end mouseUp
  80.  
  81. </script>
  82.     </part>
  83.     <part>
  84.         <id>7</id>
  85.         <type>field</type>
  86.         <visible> <true /> </visible>
  87.         <dontWrap> <false /> </dontWrap>
  88.         <dontSearch> <false /> </dontSearch>
  89.         <sharedText> <false /> </sharedText>
  90.         <fixedLineHeight> <true /> </fixedLineHeight>
  91.         <autoTab> <false /> </autoTab>
  92.         <lockText> <false /> </lockText>
  93.         <rect>
  94.             <left>0</left>
  95.             <top>118</top>
  96.             <right>102</right>
  97.             <bottom>215</bottom>
  98.         </rect>
  99.         <style>rectangle</style>
  100.         <autoSelect> <false /> </autoSelect>
  101.         <showLines> <false /> </showLines>
  102.         <wideMargins> <false /> </wideMargins>
  103.         <multipleLines> <false /> </multipleLines>
  104.         <reservedFamily> 0 </reservedFamily>
  105.         <titleWidth>0</titleWidth>
  106.         <icon>0</icon>
  107.         <textAlign>left</textAlign>
  108.         <font>Clairvaux</font>
  109.         <textSize>10</textSize>
  110.         <textStyle>plain</textStyle>
  111.         <textHeight>13</textHeight>
  112.         <name>Keywords</name>
  113.         <script></script>
  114.     </part>
  115.     <part>
  116.         <id>8</id>
  117.         <type>button</type>
  118.         <visible> <true /> </visible>
  119.         <reserved5> 0 </reserved5>
  120.         <reserved4> 0 </reserved4>
  121.         <reserved3> 0 </reserved3>
  122.         <reserved2> 0 </reserved2>
  123.         <reserved1> 0 </reserved1>
  124.         <enabled> <true /> </enabled>
  125.         <rect>
  126.             <left>35</left>
  127.             <top>70</top>
  128.             <right>75</right>
  129.             <bottom>97</bottom>
  130.         </rect>
  131.         <style>shadow</style>
  132.         <showName> <false /> </showName>
  133.         <highlight> <false /> </highlight>
  134.         <autoHighlight> <false /> </autoHighlight>
  135.         <sharedHighlight> <true /> </sharedHighlight>
  136.         <family>0</family>
  137.         <titleWidth>0</titleWidth>
  138.         <icon>32670</icon>
  139.         <textAlign>center</textAlign>
  140.         <font>Chicago</font>
  141.         <textSize>12</textSize>
  142.         <textStyle>plain</textStyle>
  143.         <name></name>
  144.         <script>on mouseUp
  145. show all cards
  146. end mouseUp
  147. </script>
  148.     </part>
  149.     <part>
  150.         <id>10</id>
  151.         <type>field</type>
  152.         <visible> <true /> </visible>
  153.         <dontWrap> <false /> </dontWrap>
  154.         <dontSearch> <false /> </dontSearch>
  155.         <sharedText> <true /> </sharedText>
  156.         <fixedLineHeight> <true /> </fixedLineHeight>
  157.         <autoTab> <false /> </autoTab>
  158.         <lockText> <true /> </lockText>
  159.         <rect>
  160.             <left>0</left>
  161.             <top>170</top>
  162.             <right>104</right>
  163.             <bottom>221</bottom>
  164.         </rect>
  165.         <style>shadow</style>
  166.         <autoSelect> <false /> </autoSelect>
  167.         <showLines> <false /> </showLines>
  168.         <wideMargins> <true /> </wideMargins>
  169.         <multipleLines> <false /> </multipleLines>
  170.         <reservedFamily> 0 </reservedFamily>
  171.         <titleWidth>0</titleWidth>
  172.         <icon>0</icon>
  173.         <textAlign>center</textAlign>
  174.         <font>New York</font>
  175.         <textSize>12</textSize>
  176.         <textStyle>bold</textStyle>
  177.         <textHeight>16</textHeight>
  178.         <name>HCCdNmbrOfHC</name>
  179.         <script>function cardData
  180. -- this handler stores the card data specified by the
  181. -- user. DO NOT MOVE THE POSITION OF THIS HANDLER!
  182. return "bkgnd"
  183. end cardData
  184.  
  185. on newfield
  186. -- create a new openCard handler when pasted
  187. put word 1 of the long name of me into fieldType
  188. if fieldType is "Bkgnd" then set sharedText of me to true
  189. addStackScript fieldType
  190. updateCardData fieldType
  191. end newfield
  192.  
  193. on deleteField
  194. removeScript
  195. end deleteField
  196.  
  197. on removeScript
  198. -- removes the openCard handler added on newField
  199. put cardData() into fieldType
  200. get script of fieldType
  201. if line 1 of scriptBody(fieldType) is in it then
  202. put offset(line 1 of scriptBody(fieldType),it) into startBlock
  203. put startBlock + number of chars in scriptBody(fieldType) + ¬¨
  204. the number of lines in scriptBody(fieldType) + 1 into endBlock
  205. delete char startBlock to endBlock of it
  206. set script of fieldType to it
  207. end if
  208. end removeScript
  209.  
  210. on mouseUp
  211. -- rebuilds the openCard handler in the stack script if necessary
  212. addStackScript cardData()
  213. end mouseUp
  214.  
  215. on addStackScript fieldType
  216. get script of fieldType
  217. if "openCard" is in it then
  218. if (fieldType && "field id" && id of me) is not in it then
  219. put scriptBody(fieldType) & return after char ¬¨
  220. (offSet("openCard",it) + 8) of it
  221. set script of fieldType to it
  222. end if
  223. else
  224. if it ‚↠empty then
  225. if last char of it = return then put return after it
  226. else put return & return after it
  227. end if
  228. -- write the full handler
  229. put "on openCard" & return & scriptBody(fieldType) & return & ¬¨
  230. "pass openCard" & return & "end openCard" after it
  231. set script of fieldType to it
  232. end if
  233. end addStackScript
  234.  
  235. function scriptBody fieldType
  236. -- returns the body of the openCard handler
  237. return "if there is a" && fieldType && "field id" && id of me & return & ¬¨
  238. "then put" && quote & "Card" & quote && "&& the number of this card && " & ¬¨
  239. quote & "of" & quote && "&& ¬¨" & return & "the number of cards into" && ¬¨
  240. fieldType && "field id" && id of me
  241. end scriptBody
  242.  
  243. on updateCardData fieldType
  244. -- write range back to the data handler in this script
  245. -- doesn't take effect until idle
  246. get script of me
  247. put quote & fieldType & quote into newData
  248. put newData into char offset(quote,it) to (offSet("end",it) - 2) of it
  249. set script of me to it
  250. end updateCardData</script>
  251.     </part>
  252.     <part>
  253.         <id>11</id>
  254.         <type>button</type>
  255.         <visible> <true /> </visible>
  256.         <reserved5> 0 </reserved5>
  257.         <reserved4> 0 </reserved4>
  258.         <reserved3> 0 </reserved3>
  259.         <reserved2> 0 </reserved2>
  260.         <reserved1> 0 </reserved1>
  261.         <enabled> <true /> </enabled>
  262.         <rect>
  263.             <left>1</left>
  264.             <top>222</top>
  265.             <right>101</right>
  266.             <bottom>244</bottom>
  267.         </rect>
  268.         <style>roundrect</style>
  269.         <showName> <true /> </showName>
  270.         <highlight> <false /> </highlight>
  271.         <autoHighlight> <false /> </autoHighlight>
  272.         <sharedHighlight> <true /> </sharedHighlight>
  273.         <family>0</family>
  274.         <titleWidth>0</titleWidth>
  275.         <icon>0</icon>
  276.         <textAlign>center</textAlign>
  277.         <font>Chicago</font>
  278.         <textSize>12</textSize>
  279.         <textStyle>plain</textStyle>
  280.         <name>Find</name>
  281.         <script>on mouseUp
  282. DoMenu "Find..."
  283. end mouseUp
  284. </script>
  285.     </part>
  286.     <part>
  287.         <id>12</id>
  288.         <type>button</type>
  289.         <visible> <true /> </visible>
  290.         <reserved5> 0 </reserved5>
  291.         <reserved4> 0 </reserved4>
  292.         <reserved3> 0 </reserved3>
  293.         <reserved2> 0 </reserved2>
  294.         <reserved1> 0 </reserved1>
  295.         <enabled> <true /> </enabled>
  296.         <rect>
  297.             <left>1</left>
  298.             <top>249</top>
  299.             <right>101</right>
  300.             <bottom>271</bottom>
  301.         </rect>
  302.         <style>roundrect</style>
  303.         <showName> <true /> </showName>
  304.         <highlight> <false /> </highlight>
  305.         <autoHighlight> <false /> </autoHighlight>
  306.         <sharedHighlight> <true /> </sharedHighlight>
  307.         <family>0</family>
  308.         <titleWidth>0</titleWidth>
  309.         <icon>0</icon>
  310.         <textAlign>center</textAlign>
  311.         <font>Chicago</font>
  312.         <textSize>12</textSize>
  313.         <textStyle>plain</textStyle>
  314.         <name>Clip it!</name>
  315.         <script>on mouseUp
  316. show MenuBar
  317. choose select tool
  318. drag from 105,10 to 503,332
  319. doMenu "Copy Picture"
  320. choose browse tool
  321. end mouseUp
  322. </script>
  323.     </part>
  324.     <part>
  325.         <id>13</id>
  326.         <type>button</type>
  327.         <visible> <true /> </visible>
  328.         <reserved5> 0 </reserved5>
  329.         <reserved4> 0 </reserved4>
  330.         <reserved3> 0 </reserved3>
  331.         <reserved2> 0 </reserved2>
  332.         <reserved1> 0 </reserved1>
  333.         <enabled> <true /> </enabled>
  334.         <rect>
  335.             <left>2</left>
  336.             <top>276</top>
  337.             <right>102</right>
  338.             <bottom>298</bottom>
  339.         </rect>
  340.         <style>roundrect</style>
  341.         <showName> <true /> </showName>
  342.         <highlight> <false /> </highlight>
  343.         <autoHighlight> <false /> </autoHighlight>
  344.         <sharedHighlight> <true /> </sharedHighlight>
  345.         <family>0</family>
  346.         <titleWidth>0</titleWidth>
  347.         <icon>0</icon>
  348.         <textAlign>center</textAlign>
  349.         <font>Chicago</font>
  350.         <textSize>12</textSize>
  351.         <textStyle>plain</textStyle>
  352.         <name>Scrapbook</name>
  353.         <script>on mouseUp
  354. DoMenu "Scrapbook"
  355. end mouseUp
  356. </script>
  357.     </part>
  358.     <content>
  359.         <layer>background</layer>
  360.         <id>10</id>
  361.         <text>Card 3 of 12</text>
  362.     </content>
  363.     <name></name>
  364.     <script>on openCard
  365. if there is a bkgnd field id 10
  366. then put "Card" && the number of this card && "of" && ¬¨
  367. the number of cards into bkgnd field id 10
  368. pass openCard
  369. end openCard</script>
  370. </background>
  371.